package com.qianyu.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qianyu.project.entity.MaterialUseDetail;
import com.qianyu.project.mapper.MaterialUseDetailMapper;
import com.qianyu.project.service.IMaterialUseDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 材料需用计划明细 服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class MaterialUseDetailServiceImpl extends ServiceImpl<MaterialUseDetailMapper, MaterialUseDetail> implements IMaterialUseDetailService {

    @Override
    public List<MaterialUseDetail> getDetailsByUseid(String useid) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("use_id",useid);
        return list(queryWrapper);
    }
}
